import type { AppRouteModule } from '/@/router/types'

import { LAYOUT } from '/@/router/constant'
import { t } from '/@/hooks/web/useI18n'

const dashboard: AppRouteModule = {
  path: '/dashboard',
  name: 'Dashboard',
  component: LAYOUT,
  redirect: '/dashboard/analysis',
  meta: {
    orderNo: 10,
    icon: 'ion:grid-outline',
    title: t('routes.dashboard.dashboard'),
  },
  children: [
    {
      path: 'analysis',
      name: 'Analysis',
      component: () => import('/@/views/dashboard/analysis/index.vue'),
      meta: {
        // affix: true,
        title: t('routes.dashboard.analysis'),
      },
    },
    {
      path: 'workbench',
      name: 'Workbench',
      component: () => import('/@/views/dashboard/workbench/index.vue'),
      meta: {
        title: t('routes.dashboard.workbench'),
      },
    },
    {
      path: 'flow',
      name: 'Flow',
      component: () => import('/@/views/dashboard/flow/index.vue'),
      meta: {
        title: t('routes.dashboard.flow'),
      },
    },
    // {
    //   path: 'flow2',
    //   name: 'Flow2',
    //   component: () => import('/@/views/dashboard/flow2/index.vue'),
    //   meta: {
    //     title: t('routes.dashboard.flow2'),
    //   },
    // },
    {
      path: 'flow3',
      name: 'Flow3',
      component: () => import('/@/views/dashboard/flow3/index.vue'),
      meta: {
        title: t('routes.dashboard.flow3'),
      },
    },
    {
      path: 'flow4',
      name: 'Flow4',
      component: () => import('/@/views/dashboard/flow4/index.vue'),
      meta: {
        title: t('routes.dashboard.flow4'),
      },
    },
    {
      path: 'flow5',
      name: 'Flow5',
      component: () => import('/@/views/dashboard/flow5/index.vue'),
      meta: {
        title: t('routes.dashboard.flow5'),
      },
    },
    {
      path: 'flow6',
      name: 'Flow6',
      component: () => import('/@/views/dashboard/flow6/index.vue'),
      meta: {
        title: t('routes.dashboard.flow6'),
      },
    },
    {
      path: 'flow7',
      name: 'Flow7',
      component: () => import('/@/views/dashboard/flow7/index.vue'),
      meta: {
        title: t('routes.dashboard.flow7'),
      },
    },
    {
      path: 'flow8',
      name: 'Flow8',
      component: () => import('/@/views/dashboard/flow8/index.vue'),
      meta: {
        title: t('routes.dashboard.flow8'),
      },
    },
    {
      path: 'flow9',
      name: 'Flow9',
      component: () => import('/@/views/dashboard/flow9/index.vue'),
      meta: {
        title: t('routes.dashboard.flow9'),
      },
    },
    {
      path: 'flow10',
      name: 'Flow10',
      component: () => import('/@/views/dashboard/flow10/index.vue'),
      meta: {
        title: t('routes.dashboard.flow10'),
      },
    },
    {
      path: 'flow11',
      name: 'Flow11',
      component: () => import('/@/views/dashboard/flow11/index.vue'),
      meta: {
        title: t('routes.dashboard.flow11'),
      },
    },
    {
      path: 'flow12',
      name: 'Flow12',
      component: () => import('/@/views/dashboard/flow12/index.vue'),
      meta: {
        title: t('routes.dashboard.flow12'),
      },
    },
  ],
}

export default dashboard
